* lisp/vc/vc-svn.el (vc-svn-create-repo): Expand paths in file://... url.
authorGlenn Morris <rgm@gnu.org>
Wed, 9 Oct 2013 18:49:32 +0000 (14:49 -0400)
committerGlenn Morris <rgm@gnu.org>
Wed, 9 Oct 2013 18:49:32 +0000 (14:49 -0400)
lisp/ChangeLog
lisp/vc/vc-svn.el

index bbf44c95f846a6ba22493d7edfcbe19678c432fa..400c9b39bc079c5f7527ec37a174a3f6de47664c 100644 (file)
@@ -1,5 +1,8 @@
 2013-10-09  Glenn Morris  <rgm@gnu.org>
 
+       * vc/vc-svn.el (vc-svn-create-repo):
+       Expand paths in file://... url.  (Bug#15446)
+
        * emacs-lisp/authors.el (authors-aliases, authors-fixed-case):
        Add some entries.
        (authors): Remove unused local variables.
index 1fd51dd21485f12bd5a2e0642401944eb2b9e790..d569349461f32ffb993fe99401a60329a0310fb7 100644 (file)
@@ -293,8 +293,10 @@ RESULT is a list of conses (FILE . STATE) for directory DIR."
 (defun vc-svn-create-repo ()
   "Create a new SVN repository."
   (vc-do-command "*vc*" 0 "svnadmin" '("create" "SVN"))
+  ;; Expand default-directory because svn gets confused by eg
+  ;; file://~/path/to/file.  (Bug#15446).
   (vc-svn-command "*vc*" 0 "." "checkout"
-                  (concat "file://" default-directory "SVN")))
+                  (concat "file://" (expand-file-name default-directory) "SVN")))
 
 (autoload 'vc-switches "vc")